<?php

	class Network_model extends CI_Model {

		protected $__tbname = 'network';
		protected $__dbconf = 'default';

		var $id;	//bigint(20) unsigned	Primary Key	Auto Increment	NOT NULL
		var $name;	//varchar(50)			NULL
		var $app_id;	//varchar(50)			NULL
		var $secret;	//varchar(50)			NULL
		var $is_deleted = 0;	//tinyint(1)			NULL

		protected $__validation_rule = array(
			'id' => array('key' => 'PRI', 'type' => 'bigint', 'null' => FALSE, 'auto_increment' => TRUE),
			'name' => array('type' => 'varchar', 'size' => 50, 'null' => TRUE),
			'app_id' => array('type' => 'varchar', 'size' => 50, 'null' => TRUE),
			'secret' => array('type' => 'varchar', 'size' => 50, 'null' => TRUE),
			'is_deleted' => array('type' => 'tinyint', 'null' => TRUE)
		);
	}
